/**
 * 
 */
package com.p2p.front.dal.model;

import java.io.Serializable;

/**
 * @author ruiqi
 *
 */
public class News implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8545611750586631257L;
	
	public enum Status{
		Invalid(0),
		Deleted(1),
		Trash(2),
		Drafts(3),
		Normal(4),
		Unread(5),
		Read(6),
		collect(7),
		;
		private int code;
		private Status(int code) {
			this.code = code;
		}
		public int getCode() {
			return code;
		}
		
	}
	
	private Long id;//ID
	private Long uid;//发送者ID
	private Long touid;//接受者ID
	private Integer ctype;//消息分类
	private Integer type;//消息类型 
	private String title;//消息标题
	private String msg;//消息内容
	private Integer status;//状态:0-无效,1-已删除,2-垃圾箱,3-草稿,4-正常,5-未读,6-已读,7-收藏
	private Integer tostatus;//状态:0-无效,1-已删除,2-垃圾箱,3-草稿,4-正常,5-未读,6-已读,7-收藏
	private Long addtime;//创建时间
	private Long uptime;//更新时间
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getUid() {
		return uid;
	}
	public void setUid(Long uid) {
		this.uid = uid;
	}
	public Long getTouid() {
		return touid;
	}
	public void setTouid(Long touid) {
		this.touid = touid;
	}
	public Integer getCtype() {
		return ctype;
	}
	public void setCtype(Integer ctype) {
		this.ctype = ctype;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getTostatus() {
		return tostatus;
	}
	public void setTostatus(Integer tostatus) {
		this.tostatus = tostatus;
	}
	public Long getAddtime() {
		return addtime;
	}
	public void setAddtime(Long addtime) {
		this.addtime = addtime;
	}
	public Long getUptime() {
		return uptime;
	}
	public void setUptime(Long uptime) {
		this.uptime = uptime;
	}
	
}
